﻿@using iSufeMVC4.Qiancun
@model List<DimGeography>

@using (Html.BeginForm())
{
    <h4 style="text-align:center;">
        根据地域查询 
        @Html.TextBox("LocationText") 
        <input type="submit" value="查询"/>
    </h4>
}
<table>
    <caption>地域@(ViewData["TargetInfo"])搜索结果</caption>
    <thead>
    <tr>
        <th>
            序号
        </th>
        <th>
            调研年份
        </th>
        <th>
            大区
        </th>
        <th>
            省
        </th>
        <th>
            市
        </th>
        <th>
            区
        </th>
        <th>
            镇
        </th>
        <th>
            村
        </th>
    </tr>
    </thead>
    <tbody>
    @{int ii = 0;}
    @foreach (DimGeography result in Model)
    {
    <tr>
        <td>
            @{ii+=1;}
            @ii
        </td>
        <td>
            @result.Version
        </td>
        <td>
            @result.BigAreaName
        </td>
        <td>
            @result.ProvinceName
        </td>
        <td>
            @result.CityName
        </td>
        <td>
            @result.AreaName
        </td>
        <td>
            @result.TownName
        </td>
        <td>
            @result.VillageName
        </td>
    </tr>
    }
    @if (Model.Count < 10)
    {
        for (int i = 0; i < 10 - Model.Count; i++)
        {
            <tr>
        <td>
            @{ii+=1;}
            @ii
        </td>
        <td>
            -
        </td>
        <td>
            -
        </td>
        <td>
            -
        </td>
        <td>
            -
        </td>
        <td>
            -
        </td>
        <td>
            -
        </td>
        <td>
            -
        </td>
    </tr>
        }
    }
    </tbody>
</table>
<p style="text-align:center;">以上统计数据仅供报名时参考，请勿用作其他用途。</p>
<style>
    table{border:1px solid black;width:90%;margin-left:40px;text-align:center;border-spacing:0;}
    table caption{margin:10px;font-size:18px;font-weight:bold;}
    table td{border:1px solid black;font-size:12px;}
    table th{border:1px solid black;}
    table tr{height:20px;}
</style>